﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Themes/Shared/Seller.master" Inherits="System.Web.Mvc.ViewPage<PagedList<ShopArticle>>" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="CssContent" runat="server">
    <link type="text/css" rel="Stylesheet" href="/Style/Store.css" />
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="JsContent" runat="server">
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="MainContent" runat="server">
<%using (Html.BeginForm()) {%>
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
        <tr>
            <td class="tdlabel">主题：</td>
            <td><input type="text" name="Title" /> </td>
        </tr>
        <tr>
            <td class="tdlabel">内容：</td>
            <td><textarea name="Content" rows="5" cols="50"></textarea> </td>
        </tr>
        <tr>
            <td class="tdlabel"></td>
            <td><p><%=Html.ValidationSummary() %></p><input type="submit" value="提交" /></td>
        </tr>
    </table>
<%} %>
<div class="tdlist">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
        <tr><th>编号</th><th>主题</th><th>内容</th></tr>
        <%if (null != Model)
          {
              foreach (ShopArticle data in Model)
              { %>
            <tr>
                <td><%=data.ID%></td> 
                <td><%=data.Title %></td> 
                <td><%=data.Content.Substr(10) %></td>
            </tr>
        <%}
          } %>
    </table>
</div>
<div class="pager" style="clear: both; padding-top: 10px">
    <%= Html.Pager("ShopNotice","Seller",Model.PageIndex, Model.PageSize, Model.TotalCount)%>
</div>
</asp:Content>
